import cv2
image=cv2.imread("mountain.png")
image_Gray=cv2.cvtColor(image,cv2.COLOR_BGR2GRAY)
athdMEAM=cv2.adaptiveThreshold(image_Gray,255,cv2.ADAPTIVE_THRESH_MEAN_C,cv2.THRESH_BINARY,5,3)
athdGAUS=cv2.adaptiveThreshold(image_Gray,255,cv2.ADAPTIVE_THRESH_GAUSSIAN_C,cv2.THRESH_BINARY,5,3)
cv2.imshow("Input",image)
cv2.imshow("image_Gray",image_Gray)
cv2.imshow("MEAN_C",athdMEAM)
cv2.imshow("GAUSSIAN_C",athdGAUS)
cv2.waitKey()
cv2.destroyAllWindows()